package com.ruoyi.business.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 借阅登记对象 file_borrowing_registration
 *
 * @author sal
 * @date 2024-11-12
 */
@Data
public class FileBorrowingRegistration extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 借阅人 */
    @ExcelProperty(value = "借阅人")
    private String borrower;

    /** 借阅单位 */
    @ExcelProperty(value = "借阅单位")
    private String borrowingUnit;

    /** 被借阅人*/
    @ExcelProperty(value = "被借阅人")
    private Long borrowerFrom;

    /** 借阅时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "借阅时间")
    private Date borrowerDate;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "归还时间")
    private Date returnTime;

    /** 借阅状态*/
    @ExcelProperty(value = "借阅状态")
    private Long status;

    /** 经办人 */
    @ExcelProperty(value = "经办人")
    private Long attn;

    private String remark;
    //没有数据库
    /** 被借阅人*/
    @ExcelProperty(value = "被借阅人")
    @TableField(exist = false)
    private String borrowerFromName;
    /** 经办人 */
    @ExcelProperty(value = "经办人")
    @TableField(exist = false)
    private String attnName;


}
